package com.jindy.module.oaPayApproval.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.jindy.module.oaPayApproval.mapper.SyPayFormMapper;
import com.jindy.module.oaPayApproval.domain.SyPayForm;
import com.jindy.module.oaPayApproval.service.ISyPayFormService;

/**
 * 报销表格Service业务层处理
 * 
 * @author jindy
 * @date 2023-06-16
 */
@Service
public class SyPayFormServiceImpl implements ISyPayFormService 
{
    @Autowired
    private SyPayFormMapper syPayFormMapper;

    /**
     * 查询报销表格
     * 
     * @param id 报销表格主键
     * @return 报销表格
     */
    @Override
    public SyPayForm selectSyPayFormById(Long id)
    {
        return syPayFormMapper.selectSyPayFormById(id);
    }

    /**
     * 查询报销表格列表
     * 
     * @param syPayForm 报销表格
     * @return 报销表格
     */
    @Override
    public List<SyPayForm> selectSyPayFormList(SyPayForm syPayForm)
    {
        return syPayFormMapper.selectSyPayFormList(syPayForm);
    }

    /**
     * 新增报销表格
     * 
     * @param syPayForm 报销表格
     * @return 结果
     */
    @Override
    public int insertSyPayForm(SyPayForm syPayForm)
    {
        return syPayFormMapper.insertSyPayForm(syPayForm);
    }

    /**
     * 修改报销表格
     * 
     * @param syPayForm 报销表格
     * @return 结果
     */
    @Override
    public int updateSyPayForm(SyPayForm syPayForm)
    {
        return syPayFormMapper.updateSyPayForm(syPayForm);
    }

    /**
     * 批量删除报销表格
     * 
     * @param ids 需要删除的报销表格主键
     * @return 结果
     */
    @Override
    public int deleteSyPayFormByIds(Long[] ids)
    {
        return syPayFormMapper.deleteSyPayFormByIds(ids);
    }

    /**
     * 删除报销表格信息
     * 
     * @param id 报销表格主键
     * @return 结果
     */
    @Override
    public int deleteSyPayFormById(Long id)
    {
        return syPayFormMapper.deleteSyPayFormById(id);
    }

    @Override
    public List<SyPayForm> selectSyPayFormsListByIds(Long[] ids) {
        return syPayFormMapper.selectSyPayFormsListByIds(ids);
    }
}
